<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CodeSmackdown.Web.Models.Snippet>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create New Snippet
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) { %>
<div>

<h3>Enter two snippets to be compared, side by side.</h3>
<p>The snippets should be mostly the same but differ in one important way. For example, they may show two different ways of achieving the same result in perl. They may show two functionally equivalent snippets from two different languages.</p>

<table style="width:100%">
        <tr>
        
        <td><h2>Snippet title</h2>   <%= Html.ValidationMessage("title") %>
        <%= Html.TextBox("title", "") %></td>
        </tr>
        <tr>
        <td>
        <h2>Snippet 1</h2>   <%= Html.ValidationMessage("snippet1") %>
        <%= Html.TextArea("snippet1", "", 10, 50, null) %>
        </td>
        <td>
        <h2>Snippet 2</h2>  <%= Html.ValidationMessage("snippet2") %>
        <%= Html.TextArea("snippet2", "", 10, 50, null) %>
        </td>
        </tr>
        
        
        <tr>
        
        <td colspan="2">
        
        <br />
        <input type="submit" value="Submit Your Snippets!" class="button"/><br /> ...snippets will be syntax highlighted with <a href="http://code.google.com/p/google-code-prettify/">magic</a>.
        
        </td>
        </tr>
        </table>
</div>
    <% } %>

</asp:Content>
